package cn.tedu.Animal;

public class Animal11 {
    public static void main(String[] args) {
        Ant a = new Ant();
        a.egg =30;
        a.fly1();
        a.spawn();
        System.out.println("蚂蚁的腿有"+a.leg+"条");
        Bee b = new Bee();
        b.egg = 400;
        b.fly1();
        b.spawn();
        b.mel();
        System.out.println("蜜蜂的腿有"+b.leg+"条");
        Pigeon p = new Pigeon();
        p.egg = 304;
        p.fly1();
        p.IayEggs();
        System.out.println("鸽子的腿有"+p.leg+"条");
        Swallow s = new Swallow();
        s.egg = 150;
        s.fly1();
        s.IayEggs();
        s.nesting();
        System.out.println("燕子的腿有"+s.leg+"条");
    }
}
